Generate an array using linspace
In [4]:
import numpy as np
# function params = starting value, ending value, number of values
x = np.linspace(0,10,50)
x
Out[4]:
Generate a random matrix of numbers
In [6]:
# function params = matrix dimensions, values per array
x = np.random.rand(1,50)
x
Out[6]:
In [8]:
x = np.random.rand(5,10)
print(x.shape)
x
Out[8]:
In [ ]: